﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Matrix.MaKaYunShang.Model.DataStatisticsModels
{
    public class BaseDataStatShopCommoditySelling
    {
        /// <summary>
        /// 店铺名称
        /// </summary>
        [DataMember(Name = "ShopName")]
        [Display(Name = "店铺名称")]
        [Description("店铺名称")]
        public string ShopName { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>		
        [DataMember(Name = "CommodityName")]
        [Display(Name = "商品名称")]
        [Description("商品名称")]
        public string CommodityName { get; set; }

        /// <summary>
        /// 商品条形码
        /// </summary>		
        [DataMember(Name = "CommodityBarCode")]
        [Display(Name = "商品条形码")]
        [Description("商品条形码")]
        public string CommodityBarCode { get; set; }

        /// <summary>
        /// 统计时间
        /// </summary>		
        [DataMember(Name = "OrderDate")]
        [Display(Name = "统计时间")]
        [Description("统计时间")]
        public string OrderDate { get; set; }

        /// <summary>
        /// 商品出售量
        /// </summary>		
        [DataMember(Name = "CommoditySoldCount")]
        [Display(Name = "商品出售量")]
        [Description("商品出售量")]
        public int CommoditySoldCount { get; set; }

        /// <summary>
        /// 商品单价
        /// </summary>		
        [DataMember(Name = "UnitPrice")]
        [Display(Name = "商品单价")]
        [Description("商品单价")]
        public decimal UnitPrice { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>		
        [DataMember(Name = "PayWayDesc")]
        [Display(Name = "支付方式")]
        [Description("支付方式")]
        public string PayWayDesc { get; set; }

        /// <summary>
        /// 商品出售总额
        /// </summary>		
        [DataMember(Name = "TotalIncome")]
        [Display(Name = "商品出售总额")]
        [Description("商品出售总额")]
        public decimal TotalIncome { get; set; }

        /// <summary>
        /// 售卖方式
        /// </summary>		
        [DataMember(Name = "SellingWay")]
        [Display(Name = "售卖方式")]
        [Description("售卖方式")]
        public string SellingWay { get; set; }

    }

    public class ShopDataStatShopCommoditySelling : BaseDataStatShopCommoditySelling
    {
        /// <summary>
        /// 客户名称
        /// </summary>		
        [DataMember(Name = "ConsumerName")]
        [Display(Name = "客户名称")]
        [Description("客户名称")]
        public string ConsumerName { get; set; }

        /// <summary>
        /// 配送人员
        /// </summary>		
        [DataMember(Name = "DisplayName")]
        [Display(Name = "配送人员")]
        [Description("配送人员")]
        public string DisplayName { get; set; }
    }

}
